@import "../../../../bk-web-foundation/src/assets/styles/element";
@import "../../../../bk-web-foundation/src/assets/styles/normalize";
@import "../../../../bk-web-foundation/src/assets/styles/global";
@import "./universal";
@import "../themes/index";

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body,
.vxe-table--render-default,
.vxe-modal--wrapper {
  font-family:
    "Microsoft YaHei",
    "Helvetica Neue",
    Helvetica,
    "PingFang SC",
    "Hiragino Sans GB",
    Arial,
    sans-serif !important;
}

.bk-layout-outer-wrapper {
  background-color: #010e20;

  &::after {
    position: absolute;
    z-index: 99999;
    left: 0;
    top: 0;
    height: 12px;
    width: 12px;
    content: "";
  }

  &.platform-view--deep-blue::after {
    background: url("~@/assets/images/left-round-deep-blue.png") no-repeat left top;
  }

  &.platform-view--classic-blue::after {
    background: url("~@/assets/images/left-round-classic-blue.png") no-repeat left top;
  }

  &.platform-view--chinese-red::after {
    background: url("~@/assets/images/left-round-red.png") no-repeat left top;
  }

  &.platform-view--pink::after {
    background: url("~@/assets/images/left-round-pink.png") no-repeat left top;
  }

  &.platform-view--simple-grey::after {
    background: url("~@/assets/images/left-round-grey.png") no-repeat left top;
  }
}

.vxe-pager {
  font-size: 14px;
  height: 40px;
}

.vxe-modal--wrapper .vxe-modal--content {
  padding: 0 !important;
}

.el-container {
  width: 100%;
  height: 100%;
}

.el-header {
  padding: 0 !important;
}

.el-main {
  padding: 0 !important;
}

.el-tooltip__popper {
  max-width: 320px !important;
  border-radius: 8px !important;
  padding: 12px !important;
  line-height: 20px !important;
}

@font-face {
  font-family: "Number Font";
  src: url("/fonts/AGENCYB.TTF");
}

.bk-layout-common-wrapper {
  .bk-layout-main-content {
    padding: 0;

    & > .full-box.bg-white,
    & > .full-box.d-flex.c-text,
    & > .bk-mutable-container.bg-white {
      position: relative;

      &::after {
        position: absolute;
        z-index: 2;
        left: 0;
        top: 0;
        height: 8px;
        width: 8px;
        content: "";
        background-color: #072e88;
      }

      &::before {
        position: absolute;
        z-index: 4;
        left: 0;
        top: 0;
        height: 8px;
        width: 8px;
        border-radius: 8px 0 0;
        content: "";
        background-color: #fff;
      }
    }

    .full-box.map-sanwei {
      background: #062c85;
      padding: 0 4px 4px 0;

      .map-new-card {
        border: 2px #000 solid;
        border-bottom: 0;
        border-right: 0;
        border-radius: 8px;
        background: #000;

        .mars3d-container {
          border-radius: 8px;
        }
      }
    }
  }

  .bk-tabs-wrapper.el-tabs.el-tabs--left {
    background-color: #fff;

    .el-tabs__header.is-left {
      margin-right: 4px;
    }
  }
}

.bk-map-drawer {
  border: 2px solid #243967;
  border-radius: 8px 0 8px 8px;

  &.left-drawer {
    // border-left: none;

    .drawer-sidebar.has-menu {
      align-items: flex-start;
      right: 0;
      border-radius: 8px 8px 0 0;

      &::after {
        position: absolute;
        z-index: 85;
        left: 2px;
        top: 1px;
        height: 260px;
        width: 2px;
        content: "";
        background-color: #01084c;
      }

      .trigger-icon {
        width: 30px;
        padding-left: 8px;
        padding-right: 0;
        height: 22px;

        &::before {
          position: absolute;
          content: "";
          top: -1px;
          bottom: -20px;
          right: -4px;
          left: 1px;
          border-radius: 0 8px 8px 0;
        }
      }

      .drawer-menus {
        .drawer-menu-item {
          margin-left: 2px;

          &.active-menu {
            margin-left: 0;
            padding: 26px 9px !important;
          }
        }
      }
    }

    &.drawer-expanded {
      left: 8px !important;
      bottom: 8px !important;

      .drawer-sidebar.has-menu::after {
        display: none;
      }
    }

    .drawer-content {
      border-top-right-radius: 0;
    }

    .drawer-sidebar.inner {
      right: 0 !important;
      transform: rotate(0) !important;
    }
  }

  &.right-drawer {
    // border-right: none;

    .drawer-sidebar {
      left: 0;
      border-radius: 8px 0 0 8px;

      &.has-menu {
        align-items: flex-end;

        .drawer-menus {
          align-items: flex-end;

          .drawer-menu-item {
            margin-right: 2px;

            &.active-menu {
              margin-right: 0;
              padding: 26px 10px 26px 8px !important;
            }
          }
        }
      }
    }

    &.drawer-expanded {
      right: 8px !important;
      bottom: 8px !important;
      border-top-right-radius: 8px;
      border-top-left-radius: 0;
    }

    .drawer-content {
      border-top-left-radius: 0;
    }

    .drawer-sidebar.inner {
      right: 0 !important;
      transform: rotate(180deg) !important;
    }
  }

  .drawer-sidebar {
    top: -4px;
    color: #fff;
    width: 30px;
    height: 30px;
    background: #243967;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;

    &:hover {
      background: #0a4bbc;
    }

    &.has-menu .drawer-menus .drawer-menu-item {
      padding: 26px 7px !important;
    }

    &.has-menu .trigger-icon {
      width: 30px;
      padding-right: 6px;
      height: 22px;
    }
  }

  .drawer-content {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;

    .right-title {
      background-color: transparent;
    }
  }

  .drawer-sidebar.inner {
    top: 10px !important;
    background-color: #fff;
    border: 1px #ddd solid;
    border-right: 0;
    height: 26px;
    width: 26px;

    .side-icon {
      position: relative;
      border-radius: 5px 0 0 5px;
      left: -1px;
      color: #666;

      .default-icon {
        transform: rotate(-180deg) !important;
      }

      .default-icon.shrink-icon {
        transform: rotate(0) !important;
      }
    }

    &:hover {
      background-color: #eee;
      .side-icon { color: #0436c0; }
    }
  }
}

.bk-mutable-container .mc-dragger {
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  flex: 0 0 4px !important;

  &::before {
    position: absolute;
    right: 0;
    content: "";
    background: #d5dbe4;
  }

  .dragger-icon {
    color: #ccc;
  }

  &:hover .dragger-icon {
    border-color: #0151dc !important;
    color: #0151dc;
  }

  &.left-dragger,
  &.right-dragger {
    &::before {
      height: 100%;
      width: 1px;
    }

    &::before,
    &:hover::after {
      left: 1px;
    }

    .dragger-icon {
      left: -3px;
    }
  }

  &.top-dragger,
  &.bottom-dragger {
    &::before {
      height: 1px;
      width: 100%;
    }

    &::before,
    &:hover::after {
      top: 1px !important;
    }

    .dragger-icon {
      top: -3px;
    }
  }
}

.el-form-item__content {
  .bk-password-wrapper .strength-tips {
    line-height: 26px;
    padding-bottom: 0;
  }
}

.no-close.vxe-modal--wrapper .vxe-modal--close-btn {
  display: none;
}

.bk-table-outer-wrapper.conditions-margin-collapsed .condition-out-wrapper .condition-inner-wrapper .bk-form-wrapper.inline-form .form-buttons {
  margin-bottom: 0 !important;
}

.condition-layout-flex,
.condition-layout-normal {
  .condition-inner-wrapper {
    padding-bottom: 10px;
  }

  .el-form-item,
  .form-buttons {
    margin-bottom: 0 !important;
  }
}

.condition-inner-wrapper {
  .form-buttons {
    .el-button {
      display: flex;

      i {
        margin-right: 6px;
      }

      &.el-button--default {
        border-color: #0151dc;
        color: #0151dc;
      }
    }
  }
}

.bk-layout-main-content {
  .el-button--small {
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .iframe-wapper {
    position: relative;
    overflow: hidden;
  }

  .iframe-body {
    position: absolute;
    top: -4.852vw;
    left: -5.915vw;
    width: calc(100% + 5.915vw);
    height: calc(100% + 4.852vw);
  }

  &.sidebar-collapsed {
    .iframe-body {
      top: -4.852vw;
      left: -6.715vw;
      width: calc(100% + 6.715vw);
      height: calc(100% + 4.852vw);
    }
  }
}

.horizontal-layout-main-content {
  .bk-layout-main-content {
    .iframe-body {
      top: -4.852vw;
      left: -6.715vw;
      width: calc(100% + 6.715vw);
      height: calc(100% + 4.852vw);
    }
  }
}

.el-select-dropdown.el-popper.semitransparent-dropdown,
.el-dropdown-menu.el-popper.semitransparent-dropdown {
  background: #ffffffe6;
  border: 1px solid  rgba(0, 0, 0, 0.2);

  .el-select-dropdown__empty,
  .el-select-dropdown__item,
  .el-dropdown-menu__item {
    color: #424e61;

    &.hover,
    &:hover,
    &:focus {
      color: #fff;
      background: #1496ff;
    }
  }

  .popper__arrow {
    display: none;
  }
}

.semitransparent-select {
  .el-input__inner {
    border-color: #00000031;
    background: #ffffffe6;
  }
}

.transparent-select {
  .el-input__inner {
    border-color: transparent !important;
    background: transparent !important;
  }
}

.semitransparent-select,
.transparent-select {
  .el-input__inner {
    color: #424e61;
  }

  &.f-14 {
    .el-input__inner {
      font-size: 14px;
    }
  }
}

// 地图浮层样式
.ol-popup > div {
  // border: none !important;
  border-radius: 4px !important;
  background-color: #ffffffe5 !important;
  border: 1px solid #fff !important;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  // position: relative;
  // margin: 10px;

  .anchor {
    // display: none;
    color: #fff !important;

    &::after {
      border-color: #ffffffc8 transparent !important;
    }
  }

  .closeBox {
    position: absolute;
    right: 10px;
    background-color: transparent !important;
    font-size: 16px;
    font-weight: normal;
    margin: 0.4em 0;
    color: #fff;

    &:hover {
      color: #0151dc;
      background-color: transparent !important;
    }
  }

  .ol-popup-content {
    padding: 0;
    margin-right: 0 !important;

    .map-card {
      width: 270px;

      .map-card-header {
        height: 38px;
        // background: linear-gradient(-90deg, #1854c500 0%, #1854c530 50%, #1f469380 100%);
        background: linear-gradient(-90deg, #84ccf9 0%, #0095fc 50%, #006cee 100%);
        border-radius: 4px 4px 0 0;
        width: 100%;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        padding-left: 13px;
        display: flex;
        align-items: center;

        .close {
          cursor: pointer;
        }
      }

      .map-card-content {
        border-radius: 0 0 4px 4px;
        padding: 10px 10px 0;
        // background-color: #fff;
        font-size: 14px;
        line-height: 20px;

        .info-cell {
          width: 50%;
          margin-bottom: 10px;
          padding-right: 10px;
          display: flex;

          &.is-full {
            width: 100%;
          }

          .info-label {
            color: #424e61;
            white-space: nowrap;
          }

          .info-value {
            color: #2b3341;
          }
        }

        .image-title-label {
          color: #424e61;
          margin-bottom: 10px;
        }

        .dashed-line {
          width: 100%;
          height: 1px;
          border-top: 1px dashed #424e61;
          margin-bottom: 10px;
        }

        .image-list {
          display: flex;

          .img {
            flex: 0 0 142px;
            height: 86px;
            overflow: hidden;
            cursor: pointer;
            margin: 0 10px 10px 0;
          }
        }
      }
    }
  }
}

.ol-popup.default.ol-popup-top .anchor {
  color: #0072f0 !important;

  &::after {
    border-color: #0072f0 transparent !important;
  }
}

.ol-popup.default.ol-popup-top.ol-popup-right .anchor {
  color: #70c4fa !important;

  &::after {
    border-color: #70c4fa transparent !important;
  }
}

.ol-popup-top .anchor {
  top: 1px;
}

.ol-popup.default {
  margin: -100px -21px;
}

.ol-popup-top.ol-popup-left.default {
  margin: 11px -22px;
}

.ol-popup-right.default {
  margin: -100px 21px;
}

// 测距、测面样式
.ol-popup.tips > div {
  background: #ffffffe6;
  color: #424e61;
  // opacity: 0.7;

  .closeBox.hasclosebox {
    right: -0;
    top: -8px;
    color: #424e61;
  }

  .ol-popup-content {
    padding: 10px 20px 10px 10px;
  }
}

.ol-overlaycontainer-stopevent {
  .ol-scale-line {
    bottom: 74px;
    left: 10px;
    border-radius: 4px;
    padding: 2px;
    box-shadow: inset 0 0 9px 0 #042ea5;
    background: #061e74c7;

    .ol-scale-line-inner {
      border: 1px solid #bec2d5;
      border-top: none;
      color: #d6d9e5;
    }
  }
}

.drawer-sidebar.has-menu {
  height: auto !important;
  background: transparent !important;

  .trigger-icon {
    position: relative;
    top: 3px;
    color: #ffffffd5;

    &::before {
      position: absolute;
      content: "";
      top: -1px;
      bottom: -20px;
      right: 1px;
      left: -4px;
      background: #06284f;
      border-top-left-radius: 8px;
      border-bottom-left-radius: 8px;
    }

    &:hover {
      color: #fff;
      &::before { background: #0a4bbc; }
    }
  }

  .drawer-menus {
    font-size: 14px;
    position: relative;
    flex-direction: column-reverse !important;

    .drawer-menu-item {
      position: relative;
      padding: 26px 4px !important;
      border: 0 !important;
      letter-spacing: 2px;

      &:not(:last-child) {
        margin-top: -25px;
      }
    }
  }
}

.bk-map-drawer.right-drawer.sidebar-menu-small {
  .drawer-sidebar.has-menu {
    .drawer-menus {
      font-size: 13px;

      .drawer-menu-item {
        padding: 24px 8px !important;
        letter-spacing: 1px;

        &.active-menu {
          padding: 24px 10px 24px 9px !important;
          margin-right: 1px;
        }
      }
    }
  }
}

// 地图 侧边菜单样式
.custom-menu-item {
  position: relative;
  background: url("~@/assets/images/menus/menu-default.png") no-repeat !important;
  background-size: 100% 100% !important;
  color: #ffffffd5;

  &:hover {
    background: url("~@/assets/images/menus/menu-hover.png") no-repeat !important;
    background-size: 100% 100% !important;
    color: #fff;
  }
}

.custom-active-menu-item {
  position: relative;
  background: url("~@/assets/images/menus/menu-active.png") no-repeat !important;
  background-size: 100% 100% !important;
  z-index: 1;

  &:hover {
    background: url("~@/assets/images/menus/menu-active.png") no-repeat !important;
    background-size: 100% 100% !important;
  }
}

.custom-menu-left-item {
  color: #ffffffd5;
  position: relative;
  background: url("~@/assets/images/menus/menu-default-left.png") no-repeat !important;
  background-size: 100% 100% !important;

  &:hover {
    color: #fff;
    background: url("~@/assets/images/menus/menu-hover-left.png") no-repeat !important;
    background-size: 100% 100% !important;
  }
}

.custom-active-menu-left-item {
  color: #fff;
  position: relative;
  // background: url("~@/assets/images/menus/menu-active-left.png") no-repeat !important;
  background-size: 100% 100% !important;
  z-index: 1;

  &:hover {
    color: #fff;
    background: url("~@/assets/images/menus/menu-hover-left.png") no-repeat !important;
    background-size: 100% 100% !important;
  }
}

.map-box.common-layout-mode {
  background: #062c85;
  padding: 0;

  .map-container {
    border-radius: 0;
    border: 0 #01084c solid;
    border-bottom: 0;
    border-right: 0;
    background: #e8f4fe;
  }
}

.hide-print {
  display: none;
}

.ol-compassctrl.compass-position {
  top: 10px;
  left: 10px;
  width: 70px;
  height: 70px;
  transform: none;
}

.bg-logo-wrapper .logo-image {
  margin-right: 8px !important;
  height: 50px !important;
}
